home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 September
/
CHIP NET Rehberi Eylül 1998.iso
/
ftp
/
iftp21
/
FTPHUB.ZIP
/
FTPHUB.FTP
< prev
Wrap
Text File
|
1997-05-23
|
2KB
|
76 lines
;---------------------------------------------------------
; iFTP script: ftphub.ftp
; (c) copyright 1997 Santronics Software
;
; This script is for Platinum Xpress Fidonet sysops using
; FTP HUB operations at Pennsylvania Online (paonline).
; The script will upload all files in the export directory
; into their appropiate directories at the ftp site, and
; will download all remote inbound files into the local
; import directory. This iFTP script is called from the
; FTPHUB.BAT which prepares the export files and processes
; all import files.
;
;---------------------------------------------------------
log logging into FTP site.....
open ftpsite
if not success goto error
;----------------------------------------------------------
;create busy flag
;----------------------------------------------------------
log Creating Busy Flag....
WriteFile ftp:/mailrun.bsy
if not success goto error
;----------------------------------------------------------
; check for local files to send to ftp site
;----------------------------------------------------------
LABEL step1
log Step 1: Check for local files to send...
if not exist export\*.* goto step2
move export\*.* ftp:/incoming
if not success goto error
goto step2
;----------------------------------------------------------
; check for remote fido files to download
;----------------------------------------------------------
LABEL step2
log Step 2: Check for remote FTN files to receive....
if not exist ftp:/out goto step3
move ftp:/out/*.* import
if not success goto error
goto step3
;----------------------------------------------------------
; check for remote internet files to download
;----------------------------------------------------------
LABEL step3
log Step 3: Check for remote internet files to receive....
if not exist ftp:/usenet goto success
move ftp:/usenet/*.* import
if not success goto error
goto success
;---------------------------------------------------------------
LABEL success
log Successful session!
goto end
;---------------------------------------------------------------
LABEL error
WriteError
goto end
;---------------------------------------------------------------
LABEL end
log Cleanup: Delete Remote busy file..
if exist ftp:/mailrun.bsy then del ftp:/mailrun.bsy
close